package com.acme.bankapp.domain.bank;

/**
 * Created by anton on 8/18/14.
 */
public class Bank {
    private final int maxClients = 10;
    private int activeClients = 0;
    private Client[] clients = new Client[maxClients];

    // Constructor
    public Bank(Client[] clients) {
        this.clients = clients;
    }
    public Bank() { }

    public Client[] getClients() {
        return clients;
    }

    public int getMaxClients() {
        return maxClients;
    }

    public void addClient(Client client) {
        if(this.activeClients >= this.maxClients) {
            System.out.println("Bank is full");
        }
        clients[activeClients++] = client;
    }
}
